home *** CD-ROM | disk | FTP | other *** search
- /* Archimedes has no stat() call - lets fake one out of ansi stuff... */
-
- /* We could use the Archimedes fileno out of the FILE* structure, but
- I am implementing all 'low-level' stuff in Ansi procedures -- so I'll
- just make a FILE* into a fileno by casting it. */
-
- #define fileno(File) ((int)File)
-
- typedef struct stat {
- int st_size;
- } stattype;
-
- int fstat(int fd, struct stat *statbuff) {
- FILE *f = (FILE *) fd;
- statbuff->st_size = 0;
- return(0);
- }
-
- #include <string.h>
- char *cuserid(char *s) {
- char name[128];
- /* Should translate Mail$Name */
- strcpy(name, "Archimedes User");
- return(name);
- }
-